package com.lanswon.qzsmk.model;

import java.io.Serializable;
import java.util.Date;

/**
 * 中心流水号管理
 * @author sun
 *
 */
public class CenterSerialNumber implements Serializable {
    /**
	 * 
	 */
	private static final long serialVersionUID = -286785387465641874L;

	/** 序号 */
    private Integer id;

    /** 城市代码 */
    private String cityCode;

    /** 8位时间 */
    private Date date;

    /** 序列号 日切置为1 */
    private Integer sequence;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCityCode() {
        return cityCode;
    }

    public void setCityCode(String cityCode) {
        this.cityCode = cityCode == null ? null : cityCode.trim();
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Integer getSequence() {
        return sequence;
    }

    public void setSequence(Integer sequence) {
        this.sequence = sequence;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", cityCode=").append(cityCode);
        sb.append(", date=").append(date);
        sb.append(", sequence=").append(sequence);
        sb.append("]");
        return sb.toString();
    }
}